package com.example.gulimallware.vo;

import javax.validation.constraints.NotNull;
import java.util.List;

public class PurchaseDoneVo {
    @NotNull(message = "采购单id不能为空")
    private Long id;
    @NotNull(message = "采购项不能为空")
    private List<PurchaseItemDoneVo> items;

    public PurchaseDoneVo() {
    }

    public PurchaseDoneVo(Long id, List<PurchaseItemDoneVo> items) {
        this.id = id;
        this.items = items;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return items
     */
    public List<PurchaseItemDoneVo> getItems() {
        return items;
    }

    /**
     * 设置
     * @param items
     */
    public void setItems(List<PurchaseItemDoneVo> items) {
        this.items = items;
    }

    public String toString() {
        return "PurchaseDoneVo{id = " + id + ", items = " + items + "}";
    }

    public static class PurchaseItemDoneVo {
        private Long itemId;
        private Integer status;

        public PurchaseItemDoneVo() {
        }

        public PurchaseItemDoneVo(Long itemId, Integer status) {
            this.itemId = itemId;
            this.status = status;
        }

        /**
         * 获取
         * @return itemId
         */
        public Long getItemId() {
            return itemId;
        }

        /**
         * 设置
         * @param itemId
         */
        public void setItemId(Long itemId) {
            this.itemId = itemId;
        }

        /**
         * 获取
         * @return status
         */
        public Integer getStatus() {
            return status;
        }

        /**
         * 设置
         * @param status
         */
        public void setStatus(Integer status) {
            this.status = status;
        }

        public String toString() {
            return "PurchaseItemDoneVo{itemId = " + itemId + ", status = " + status + "}";
        }
    }
}
